//
//  OldAccount.swift
//  LeGou
//
//  Created by lxm on 2022/12/23.
//

import UIKit

class OldAccount: ZMViewController {

    //MARK:--------------------属性--------------------
    
    //MARK:--------------------UI控件--------------------
    
    @IBOutlet weak var money: UILabel!
    //MARK:--------------------生命周期--------------------
    override func viewDidLoad() {
        super.viewDidLoad()
        setUI()
        addConstraints()
        bindAction()
        getInfo()
    }
    //MARK:--------------------UI--------------------
    func setUI() {
        title = "原有账户"
    }
    func addConstraints() {
        
    }
    
    //MARK:--------------------methods--------------------
    func bindAction() {
        
    }
    
    func getInfo() {
        MineAPI.getOldAccount([:]).rxRequest(type: [String : Any].self).subscribe(onNext:{ [unowned self] resp in
            self.money.text = JSON(resp)["mallMoney"].stringValue
        }).disposed(by: disposeBag)
    }

    //MARK:--------------------delegate--------------------

}
